<template>
  <div>
    <a href="javascript:;" @click="skip('home')">首页</a>
    <a href="javascript:;" @click="skip('plate')">分类</a>
    <a href="javascript:;" @click="skip('order')">订单</a>
    <a href="javascript:;" @click="skip('my')">我的</a>
    <div>
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    skip(name) {
      this.$router.push({
        name,
      })
    },
  },
}
</script>

<style></style>
